package org.mozhu.mboot.admin.maintain.notification.web.controller;

import org.mozhu.mboot.admin.maintain.notification.entity.NotificationModule;
import org.mozhu.mboot.admin.maintain.notification.entity.NotificationTemplate;
import org.mozhu.mboot.core.web.bind.annotation.ControllerDefaults;
import org.mozhu.mboot.core.web.controller.BaseCRUDController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/maintain/notification/template")
@Controller
@ControllerDefaults(resourceIdentity = "maintain:notification")
public class NotificationTemplateController extends BaseCRUDController<NotificationTemplate, Long> {

	@Override
	protected void setCommonData(Model model) {
		super.setCommonData(model);
		model.addAttribute("modules", NotificationModule.values());
	}

	protected NotificationTemplate getBaseService() {
		return (NotificationTemplate) baseService;
	}

}